package com.mofang.ticketing.user.serve.role.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author LGC
 * @date 2022/5/19 20:01
 */
@Data
@ApiModel(value = "角色新增")
public class RoleAddReqDTO implements Serializable {
    private static final long serialVersionUID = -1270879140086081514L;

    @NotNull(message = "商户ID不能为空")
    @ApiModelProperty(value = "商户ID", required = true)
    private Long merchantId;

    @NotBlank(message = "角色名称不能为空")
    @Size(max = 50, message = "角色名称最大50字符")
    @ApiModelProperty(value = "角色名称", required = true)
    private String roleName;

    @NotBlank(message = "权限json不能为空")
    @ApiModelProperty(value = "权限json", required = true)
    private String authority;

}
